<?php defined('InNcPHP') or exit('Access Invalid!');?>

<div class="page">
  <div class="fixed-bar">
    <div class="item-title">
      <h3><?php echo $lang['web_set'];?></h3>
    </div>
  </div>
  <div class="fixed-empty"></div>
  <form method="post" enctype="multipart/form-data" name="form1">
    <input type="hidden" name="form_submit" value="ok" />
    <table class="table tb-type2">
      <tbody>
        <tr class="noborder">
          <td colspan="2" class="required"><label for="site_name"><?php echo $lang['web_name'];?>:</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform"><input id="site_name" name="site_name" value="<?php echo $output['list_setting']['site_name'];?>" class="txt" type="text" /></td>
          <td class="vatop tips"><span class="vatop rowform"><?php echo $lang['web_name_notice'];?></span></td>
        </tr>
        <tr>
          <td colspan="2" class="required"><label for="site_phone"><?php echo $lang['site_phone'];?>:</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform"><input id="site_phone" name="site_phone" value="<?php echo $output['list_setting']['site_phone'];?>" class="txt" type="text" /></td>
          <td class="vatop tips"><span class="vatop rowform"><?php echo $lang['site_phone_notice'];?></span></td>
        </tr>

        <tr>
          <td colspan="2" class="required"><label for="site_email"><?php echo $lang['site_email'];?>:</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform"><input id="site_email" name="site_email" value="<?php echo $output['list_setting']['site_email'];?>" class="txt" type="text" /></td>
          <td class="vatop tips"><span class="vatop rowform"><?php echo $lang['site_email_notice'];?></span></td>
        </tr>

        <tr>
          <td colspan="2" class="required"><label for="time_zone"> <?php echo $lang['time_zone_set'];?>:</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform"><select id="time_zone" name="time_zone">
              <option value="-12">(GMT -12:00) Eniwetok, Kwajalein</option>
              <option value="-11">(GMT -11:00) Midway Island, Samoa</option>
              <option value="-10">(GMT -10:00) Hawaii</option>
              <option value="-9">(GMT -09:00) Alaska</option>
              <option value="-8">(GMT -08:00) Pacific Time (US &amp; Canada), Tijuana</option>
              <option value="-7">(GMT -07:00) Mountain Time (US &amp; Canada), Arizona</option>
              <option value="-6">(GMT -06:00) Central Time (US &amp; Canada), Mexico City</option>
              <option value="-5">(GMT -05:00) Eastern Time (US &amp; Canada), Bogota, Lima, Quito</option>
              <option value="-4">(GMT -04:00) Atlantic Time (Canada), Caracas, La Paz</option>
              <option value="-3.5">(GMT -03:30) Newfoundland</option>
              <option value="-3">(GMT -03:00) Brassila, Buenos Aires, Georgetown, Falkland Is</option>
              <option value="-2">(GMT -02:00) Mid-Atlantic, Ascension Is., St. Helena</option>
              <option value="-1">(GMT -01:00) Azores, Cape Verde Islands</option>
              <option value="0">(GMT) Casablanca, Dublin, Edinburgh, London, Lisbon, Monrovia</option>
              <option value="1">(GMT +01:00) Amsterdam, Berlin, Brussels, Madrid, Paris, Rome</option>
              <option value="2">(GMT +02:00) Cairo, Helsinki, Kaliningrad, South Africa</option>
              <option value="3">(GMT +03:00) Baghdad, Riyadh, Moscow, Nairobi</option>
              <option value="3.5">(GMT +03:30) Tehran</option>
              <option value="4">(GMT +04:00) Abu Dhabi, Baku, Muscat, Tbilisi</option>
              <option value="4.5">(GMT +04:30) Kabul</option>
              <option value="5">(GMT +05:00) Ekaterinburg, Islamabad, Karachi, Tashkent</option>
              <option value="5.5">(GMT +05:30) Bombay, Calcutta, Madras, New Delhi</option>
              <option value="5.75">(GMT +05:45) Katmandu</option>
              <option value="6">(GMT +06:00) Almaty, Colombo, Dhaka, Novosibirsk</option>
              <option value="6.5">(GMT +06:30) Rangoon</option>
              <option value="7">(GMT +07:00) Bangkok, Hanoi, Jakarta</option>
              <option value="8">(GMT +08:00) Beijing, Hong Kong, Perth, Singapore, Taipei</option>
              <option value="9">(GMT +09:00) Osaka, Sapporo, Seoul, Tokyo, Yakutsk</option>
              <option value="9.5">(GMT +09:30) Adelaide, Darwin</option>
              <option value="10">(GMT +10:00) Canberra, Guam, Melbourne, Sydney, Vladivostok</option>
              <option value="11">(GMT +11:00) Magadan, New Caledonia, Solomon Islands</option>
              <option value="12">(GMT +12:00) Auckland, Wellington, Fiji, Marshall Island</option>
            </select></td>
          <td class="vatop tips"><span class="vatop rowform"><?php echo $lang['set_sys_use_time_zone'];?>+8</span></td>
        </tr>

        <tr>
            <td colspan="2" class="required"><?php echo $lang['smsbao'];?>:</td>
        </tr>
        <tr class="noborder">
            <td class="vatop rowform onoff">
                <label for="smsbao1" class="cb-enable <?php if($output['list_setting']['smsbao'] == '1'){ ?>selected<?php } ?>" ><span><?php echo $lang['open'];?></span></label>
                <label for="smsbao0" class="cb-disable <?php if($output['list_setting']['smsbao'] == '0'){ ?>selected<?php } ?>" ><span><?php echo $lang['close'];?></span></label>
                <input id="smsbao1" name="smsbao" <?php if($output['list_setting']['smsbao'] == '1'){ ?>checked="checked"<?php } ?>  value="1" type="radio">
                <input id="smsbao0" name="smsbao" <?php if($output['list_setting']['smsbao'] == '0'){ ?>checked="checked"<?php } ?> value="0" type="radio"></td>
            <td class="vatop tips"><span class="vatop rowform"><?php echo $lang['smsbao_notice'];?></span></td>
        </tr>

        <tr>
            <td colspan="2" class="required"><label for="smsuser"><?php echo $lang['smsuser'];?>:</label></td>
        </tr>
        <tr class="noborder">
            <td class="vatop rowform"><input id="smsuser" name="smsuser" value="<?php echo $output['list_setting']['smsuser'];?>" class="txt" type="text" /></td>
            <td class="vatop tips"><span class="vatop rowform"><?php echo $lang['smsuser_notice'];?></span></td>
        </tr>

        <tr>
            <td colspan="2" class="required"><label for="smspassword"><?php echo $lang['smspassword'];?>:</label></td>
        </tr>
        <tr class="noborder">
            <td class="vatop rowform"><input id="smspassword" name="smspassword" value="<?php echo $output['list_setting']['smspassword'];?>" class="txt" type="text" /></td>
            <td class="vatop tips"><span class="vatop rowform"></span></td>
        </tr>

        <tr>
            <td colspan="2" class="required"><label for="smsTemplate"><?php echo $lang['smsTemplate'];?>:</label></td>
        </tr>
        <tr class="noborder">
            <td class="vatop rowform"><textarea name="smsTemplate" rows="6" class="tarea" id="smsTemplate" ><?php echo $output['list_setting']['smsTemplate'];?></textarea></td>
            <td class="vatop tips"><span class="vatop rowform"><?php echo $lang['smsTemplate_notice'];?></span></td>
        </tr>

        <tr>
            <td colspan="2" class="required"><label for="smsResetPwdTemplate"><?php echo $lang['smsResetPwdTemplate'];?>:</label></td>
        </tr>
        <tr class="noborder">
            <td class="vatop rowform"><textarea name="smsResetPwdTemplate" rows="6" class="tarea" id="smsResetPwdTemplate" ><?php echo $output['list_setting']['smsResetPwdTemplate'];?></textarea></td>
            <td class="vatop tips"><span class="vatop rowform"><?php echo $lang['smsResetPwdTemplate_notice'];?></span></td>
        </tr>


        <tr>
          <td colspan="2" class="required"><?php echo $lang['site_state'];?>:</td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform onoff"><label for="site_status1" class="cb-enable <?php if($output['list_setting']['site_status'] == '1'){ ?>selected<?php } ?>" ><span><?php echo $lang['open'];?></span></label>
            <label for="site_status0" class="cb-disable <?php if($output['list_setting']['site_status'] == '0'){ ?>selected<?php } ?>" ><span><?php echo $lang['close'];?></span></label>
            <input id="site_status1" name="site_status" <?php if($output['list_setting']['site_status'] == '1'){ ?>checked="checked"<?php } ?>  value="1" type="radio">
            <input id="site_status0" name="site_status" <?php if($output['list_setting']['site_status'] == '0'){ ?>checked="checked"<?php } ?> value="0" type="radio"></td>
          <td class="vatop tips"><span class="vatop rowform"><?php echo $lang['site_state_notice'];?></span></td>
        </tr>

        <tr>
          <td colspan="2" class="required"><label for="closed_reason"><?php echo $lang['closed_reason'];?>:</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform"><textarea name="closed_reason" rows="6" class="tarea" id="closed_reason" ><?php echo $output['list_setting']['closed_reason'];?></textarea></td>
          <td class="vatop tips"><span class="vatop rowform"><?php echo $lang['closed_reason_notice'];?></span></td>
        </tr>

      </tbody>
      <tfoot id="submit-holder">
        <tr class="tfoot">
          <td colspan="2" ><a href="JavaScript:void(0);" class="btn" onclick="document.form1.submit()"><span><?php echo $lang['nc_submit'];?></span></a></td>
        </tr>
      </tfoot>
    </table>
  </form>
</div>
<script type="text/javascript">
$(function(){
  $('#time_zone').attr('value','<?php echo $output['list_setting']['time_zone'];?>');	
});
</script>
